﻿@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@{
    ViewData["Title"] = Localizer["TaskManager"];
}

<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        @Html.AntiForgeryToken()
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" class="layui-input searchVal" placeholder="@Localizer["Placeholder"]" />
            </div>
            <a class="layui-btn search_btn" data-type="reload">@Localizer["Search"]</a>
        </div>
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal addTask_btn"><i class="layui-icon">&#xe61f;</i>@Localizer["AddTask"]</a>
        </div>
        <div class="layui-inline">
            <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn"><i class="layui-icon layui-icon-delete"></i>@Localizer["BatchDelete"]</a>
        </div>
    </form>
</blockquote>
<table id="taskList" lay-filter="taskList"></table>
<script type="text/html" id="taskListBar">
    <a class="layui-btn layui-btn-xs btnEdit" lay-event="edit">@Localizer["Modify"]</a>
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="send">@Localizer["Assign"]</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">@Localizer["Delete"]</a>
</script>
@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/LMSTask/taskList.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
